package com.huarui.saleReturn.model;

import java.math.BigDecimal;
import java.util.Date;

import org.ewaf.framework.model.BaseDataObject;
/**
 * 销售退货单
 * @author jiwei.yi
 *
 */
public class SaleReturn extends BaseDataObject {
	
	private static final long serialVersionUID = -713383448014210425L;
	
	/**
	 * 新建
	 */
	public static final String STATUS_NEW ="-1";
	
	/**
	 * 草稿
	 */
	public static final String STATUS_CREATE = "0"; 
	
	/**
	 * 已提交
	 */
	public static final String STATUS_SUBMIT = "1"; 
	
	/**
	 * 已存库
	 */
	public static final String STATUS_DELIVERY = "2";
	
	/**
	 * 作废
	 */
	public static final String STATUS_INVALID = "3";
	
	private Integer id;
	/**
	 * 卖方ID
	 */
	private Integer sellerId;
	/**
	 * 买方ID
	 */
	private Integer buyerId;
	/**
	 * 买方在卖方系统中的客户ID
	 */
	private Integer partnerIdBySeller;
	/**
	 *  卖方的单据号
	 */
	private String codeOfSeller;
	/**
	 * 总金额(售价)
	 */
	private BigDecimal amount;
	/**
	 * 状态(0=草稿，1=已提交，2=已存库)
	 */
	private String status;
	/**
	 * 创建人
	 */
	private Integer creatorId;
	/**
	 * 创建时间(非手工录入)
	 */
	private Date gmtCreate;
	/**
	 * 提交者ID
	 */
	private Integer submitter;
	/**
	 * 提交时间(非手工录入)
	 */
	private Date gmtSubmit;
	/**
	 * 存库者ID
	 */
	private Integer deliveryerId;
	/**
	 * 发货时间(非手工录入)
	 */
	private Date gmtDelivery;
	/**
	 * 收货时间(手工输入)
	 */
	private Date  gmtRealDelivery;
	/**
	 * 卖方备注
	 */
	private String memoOfSeller;
	/**
	 * 支付方式
	 */
	//private String paymentType;
	
	/**
	 * 流程ID
	 */
	private Integer workFlowId;
	/**
	 * 当前处理人ID
	 */
	private Integer currentorId;
	
	public SaleReturn(){
		
		
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	public Integer getBuyerId() {
		return buyerId;
	}

	public void setBuyerId(Integer buyerId) {
		this.buyerId = buyerId;
	}

	public Integer getPartnerIdBySeller() {
		return partnerIdBySeller;
	}

	public void setPartnerIdBySeller(Integer partnerIdBySeller) {
		this.partnerIdBySeller = partnerIdBySeller;
	}

	public String getCodeOfSeller() {
		return codeOfSeller;
	}

	public void setCodeOfSeller(String codeOfSeller) {
		this.codeOfSeller = codeOfSeller;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getSubmitter() {
		return submitter;
	}

	public void setSubmitter(Integer submitter) {
		this.submitter = submitter;
	}

	public Date getGmtSubmit() {
		return gmtSubmit;
	}

	public void setGmtSubmit(Date gmtSubmit) {
		this.gmtSubmit = gmtSubmit;
	}

	public Integer getDeliveryerId() {
		return deliveryerId;
	}

	public void setDeliveryerId(Integer deliveryerId) {
		this.deliveryerId = deliveryerId;
	}

	public Date getGmtDelivery() {
		return gmtDelivery;
	}

	public void setGmtDelivery(Date gmtDelivery) {
		this.gmtDelivery = gmtDelivery;
	}

	public Date getGmtRealDelivery() {
		return gmtRealDelivery;
	}

	public void setGmtRealDelivery(Date gmtRealDelivery) {
		this.gmtRealDelivery = gmtRealDelivery;
	}

	public String getMemoOfSeller() {
		return memoOfSeller;
	}

	public void setMemoOfSeller(String memoOfSeller) {
		this.memoOfSeller = memoOfSeller;
	}

	public Integer getWorkFlowId() {
		return workFlowId;
	}

	public void setWorkFlowId(Integer workFlowId) {
		this.workFlowId = workFlowId;
	}

	public Integer getCurrentorId() {
		return currentorId;
	}

	public void setCurrentorId(Integer currentorId) {
		this.currentorId = currentorId;
	}

	
}
